<?php

if( !defined('BASEPATH') )
{
	exit('No access !');
}

class DDB extends CI_Controller
{
	var $data;

	public function __construct()
	{
		parent::__construct();

		// khoi tao du lieu
		$this->loadData1();

		// load header
		$this->load->view('ddb/header', $this->data);
	}

	function loadData1()
	{
		$this->data['title'] = 'Trang tin tuc di dong';
		$this->data['meta_data'] = 'tin tuc, di dong';
	}

	/*
	 * goi thu vien giao dien
	*/
	public function index()
	{
		// goi giao dien chinh
		$this->load->view('ddb/index', $this->data);		

		// goi footer
		$this->load->view('ddb/footer', $this->data);
	}
}